#region License Revision: 0 Last Revised: 6/18/2008 11:00 AM
/******************************************************************************
Copyright (c) Microsoft Corporation.  All rights reserved.


This file is licensed under the Microsoft Public License (Ms-PL). A copy of the Ms-PL should accompany this file. 
If it does not, you can obtain a copy from: 

http://www.microsoft.com/resources/sharedsource/licensingbasics/publiclicense.mspx
******************************************************************************/
#endregion // License
using System;
using System.Windows.Browser;
using System.Diagnostics;
using ScriptInterop;

namespace VIEWS // Virtual Earth Wrapper
{

/// <summary>Contains details about one segment of a VERoute Class object.</summary>
public class VERouteSegment : JSObject
{   
	/// <summary>String holding JavaScript class name</summary>
	private static string thisClass = "VERouteSegment";
	
	/// <summary>Get the JavaScript class name</summary>
	/// <returns type="String">The class name used in JavaScript </returns>		
	public override string ClassName
	{
		get { return thisClass; }
	}

	/// <summary>Construct a C# wrapper from a ScriptObject</summary>
	/// <param name="so">A ScriptObjet from JScript.</param>
	public VERouteSegment(ScriptObject so) : base(so) { }

	
	/// <summary name="Instruction" type="String">The driving instructions for this segment of the route.</summary>
	public string Instruction
	{
		get { return GetProperty<string>("Instruction"); }
	}
	/// <summary name="Distance" type="Number">The distance of this segment of the route.</summary>
	public double Distance
	{
		get { return GetProperty<double>("Distance"); }
	}
	/// <summary name="LatLong" type="VELatLong">A VELatLong Class object of the start point of this segment.</summary>
	public VELatLong LatLong
	{
		get { var so = GetProperty<ScriptObject>("LatLong"); return new VELatLong(so); }
	}
		
}

}
